import layout from '@/components/layout/index'

const routes = [
        {
            path: '/login',
            name: 'login',
            meta: {
                title: "登录"
            },
            component: () => import('@/views/login/login.vue')
        },


        {
            path: '/sysUser',
            name: 'sysUser',
            component: layout,
            redirect: '/sysUser',
            children: [
                {
                    path: '/sysUser',
                    name: 'sysUser',
                    meta: {
                        title: "用户管理"
                    },
                    component: () => import('@/views/sysuser/sys_user.vue'),
                }
            ]
        },

        {
            path: '/deptList',
            name: 'deptList',
            component: layout,
            redirect: '/deptList',
            children: [
                {
                    path: '/deptList',
                    name: 'deptList',
                    meta: {
                        title: "部门管理"
                    },
                    component: () => import('@/views/dept/dept_list.vue'),
                }
            ]
        },

        {
            path: '/roleList',
            name: 'roleList',
            component: layout,
            redirect: '/roleList',
            children: [
                {
                    path: '/roleList',
                    name: 'roleList',
                    meta: {
                        title: "角色管理"
                    },
                    component: () => import('@/views/role/role_list.vue'),
                }
            ]
        },

        {
            path: '/developPlace',
            name: 'developPlace',
            component: layout,
            redirect: '/developPlace',
            children: [
                {
                    path: '/developPlace',
                    name: 'developPlace',
                    meta: {
                        title: "研发地管理"
                    },
                    component: () => import('@/views/develop/develop_place.vue'),
                }
            ]
        },

        {
            path: '/vaccinName',
            name: 'vaccinName',
            component: layout,
            redirect: '/vaccinName',
            children: [
                {
                    path: '/vaccinName',
                    name: 'vaccinName',
                    meta: {
                        title: "疫苗名称管理"
                    },
                    component: () => import('@/views/vaccinname/vaccin_name.vue'),
                }
            ]
        },

        {
            path: '/vaccinInjection',
            name: 'vaccinInjection',
            component: layout,
            redirect: '/vaccinInjection',
            children: [
                {
                    path: '/vaccinInjection',
                    name: 'vaccinInjection',
                    meta: {
                        title: "疫苗注射管理"
                    },
                    component: () => import('@/views/vaccininjection/vaccin_injection.vue'),
                }
            ]
        },

        {
            path: '/vaccinType',
            name: 'vaccinType',
            component: layout,
            redirect: '/vaccinType',
            children: [
                {
                    path: '/vaccinType',
                    name: 'vaccinType',
                    meta: {
                        title: "疫苗种类管理"
                    },
                    component: () => import('@/views/vaccintype/vaccin_type.vue'),
                }
            ]
        },


        {
            path: '/sysLog',
            name: 'sysLog',
            component: layout,
            redirect: '/sysLog',
            children: [
                {
                    path: '/sysLog',
                    name: 'sysLog',
                    meta: {
                        title: "系统日志"
                    },
                    component: () => import('@/views/syslog/sys_log.vue'),
                }
            ]
        },

        {
            path: '/home',
            name: 'home',
            component: layout,
            redirect: '/home',
            children: [
                {
                    path: '/home',
                    name: 'Home',
                    meta: {
                        title: "首页"
                    },
                    component: () => import('@/views/home/home.vue'),
                }
            ]
        },

    ]
;

export default routes;
